﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GetCourseDetails.ascx.cs" Inherits="NLLSite.UserControl.GetCourseDetails" %>
<asp:ListView ID="ListView1" runat="server" DataSourceID="LinqDataSource1" 
    EnableModelValidation="True">
    
    <ItemTemplate>
    <div class="location"><a href="/trang-chu">
    <img height="24px" border="0" align="absmiddle" src="/Templates/Images/inet_icon.png">
    &nbsp;NLL</a>
    <img height="5px" width="7px" border="0" style="padding:5px 5px;" align="absmiddle" src="/Templates/Images/icon-location.png" >
    &nbsp;<a href="/khoa-hoc">Khoa Học</a><img height="5px" width="7px" border="0" style="padding:5px 5px;" align="absmiddle" src="/Templates/Images/icon-location.png" >
    <%# Eval("Name")%>
    </div>
    <div class="clr"></div>
        <div class="box-center-dau"><h1><%# Eval("Name")%></h1><span style="float:right; width:80px;padding:3px 1px 0px 0px;"><a class="addthis_button_google_plusone" <%="g:plusone:size"%>="medium" ></a></span></div>
            <div class="box-center-giua">
                <div class="box-center-item-tin">
                <%# Eval("Content") %>
                
                <span style="float:right;">
                <!-- AddThis Button BEGIN -->
                
                <a><img border="0" style="padding:0px 5px;"   src="/Templates/Images/dangky-button.gif"></a>

                <a class="addthis_button_google_plusone" <%="g:plusone:size"%>="tall" ></a>
<a class="addthis_button_facebook_like" <%="fb:like:layout"%>="box_count"></a>

<script src="http://widgets.fbshare.me/files/fbshare.js"></script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4f1854f0139e903c"></script>
<!-- AddThis Button END -->
                </span>
                </div>
            </div>
       <div class="box-center-cuoi"></div>
        <%--<span style="">ID:
        <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' />
        <br />
        Name:
        <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name") %>' />
        <br />
        Content:
        <asp:Label ID="ContentLabel" runat="server" Text='<%# Eval("Content") %>' />
        <br />
<br /></span>--%>
    </ItemTemplate>
    <LayoutTemplate>
        <div ID="itemPlaceholderContainer" runat="server" style="">
            <span runat="server" id="itemPlaceholder" />
        </div>
        <div style="">
        </div>
    </LayoutTemplate>
    
</asp:ListView>
<asp:LinqDataSource ID="LinqDataSource1" runat="server" 
    ContextTypeName="DAL_Class.NLLDataContext" Select="new (ID, Name, Content)" 
    TableName="Courses" Where="ID == @ID">
    <WhereParameters>
        <asp:QueryStringParameter DefaultValue="0" Name="ID" 
            QueryStringField="courseid" Type="Int32" />
    </WhereParameters>
</asp:LinqDataSource>

